package toy.keli.edic.data.local.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey

@Entity(tableName = "book_item_ico",
    indices = arrayOf(
        Index(value = arrayOf("intime","uptime","name")),
        Index(value=arrayOf("ctype","cid"),unique=true)
    )
)
data class BookItemIcoEntity (
                            val cid: Int,
                            val ctype: String,
                            val name:String,
                            var content:ByteArray?=byteArrayOf(),
                              @ColumnInfo(name = "uptime", defaultValue = "CURRENT_TIMESTAMP")
                            var uptime:Long =0L,
                              @ColumnInfo(name = "intime", defaultValue = "CURRENT_TIMESTAMP")
                            var intime:Long=0L,
                              @PrimaryKey(autoGenerate = true)
                            var id: Int =0){
}